var Mock = require("mockjs");
// console.log(Mock.Random.cname());

Mock.mock('/subjectlist', {
    'subjectList|10': [{
        "id|+1": 1,
        "title": "@cword(10,30)",
        "isOpen":false,
        "type": "@integer(0,3)",
        "options": [{
                "id": "1001",
                "val": "1"
            },
            {
                "id": "1002",
                "val": "2"
            },
            {
                "id": "1003",
                "val": "3"
            },
            {
                "id": "1004",
                "val": "4"
            }
        ],
        "author": "@cname",
        "createTime":"@datetime",
        "auswer|1": ["A", "B", "C", "D"],
        "desc": "@cword(20,100)"
    }]
})